home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 2 / Atari Mega Archive CD - Volume 2.iso / minix / up1510b.tgz / up1510b / src / tools / outmix.h < prev    next >
C/C++ Source or Header  |  1990-07-15  |  1KB  |  51 lines

  1. /*
  2.  * output format for MINIX-PC and MINIX-ST.
  3.  * for the i8088 longs are stored with low-order byte first.
  4.  * for the 68000 longs are stored with high-order byte first.
  5.  * this is a mess!
  6.  * This MINIX format is a stripped down and mutilated version of
  7.  * the Vrije Universiteit flavor of the ACK loadfile format.
  8.  */
  9.  
  10. struct exec {
  11.     long     a_magic;    /* contains a.out magic number */
  12.     long    a_versn;    /* header length and version */
  13.     long    a_tsize;    /* # bytes in program text segment */
  14.     long    a_dsize;    /* # bytes in program data segment */
  15.     long    a_bsize;    /* # bytes in program bss  segment */
  16.     long    a_entry;    /* entry point */
  17.     long    a_msize;    /* # bytes allocated for program */
  18.     long    a_ssize;    /* # bytes in symbol table */
  19. };
  20.  
  21. #define    A_MAGICD    0x04100301L    /* combined I & D space */
  22. #define    A_MAGICI    0x04200301L    /* separate I & D space */
  23.  
  24. #define    A_VERSION    0x00000020L
  25.  
  26. struct  nlist
  27. {       char   n_name[8];      /* symbol name */
  28.     long   n_value;        /* symbol value */
  29.     char   n_sclass;       /* storage class */
  30.     char   n_numaux;       /* number of auxiliary entries */
  31.     short  n_type;         /* language base and derived type */
  32. };
  33.  
  34. /*
  35.  * structure format strings
  36.  */
  37. #ifdef i8088
  38. #define    SF_HEAD        "L44444444"
  39. #define    SF_SYMB        "L11111114112"
  40. #endif
  41. #ifdef ATARI_ST
  42. #define    SF_HEAD        "M44444444"
  43. #define    SF_SYMB        "M11111114112"
  44. #endif
  45.  
  46. /*
  47.  * structure sizes in file (add digits in SF_*)
  48.  */
  49. #define    SZ_HEAD        32
  50. #define    SZ_SYMB        16
  51.